﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SPC.Classes
{
    class settingsClass
    {

        
        private string m_PENALTY_PERCENT_VALUE;
        private string m_PENALTY_DAY_COUNT_LIMIT;
        private string m_PRINT_PENALTY_TITLE;
        private string m_PRINT_DOMAIN;

        private string m_PRINT_SUMMON_TITLE;
        private string m_PRINT_SUMMON_HEADER;
        private string m_PRINT_SUMMON_BODY;

        private string m_PRINT_SUMMON_TO;
        private string m_PRINT_SUMMON_ADMIN;
        private string m_PRINT_SUMMON_BODY_TOTALS_DETAILS;

        
        public settingsClass()
        {
            this.m_PRINT_DOMAIN = Properties.Settings.Default.PRINT_DOMAIN;
            this.m_PENALTY_PERCENT_VALUE = Properties.Settings.Default.PENALTY_PERCENT_VALUE.ToString();
        }
        
        [DisplayName("PENALTY_PERCENT_VALUE")]
        [Description("Valoarea procentajului de penalitate - ex: 0,1% - atentie virgula nu punct.")]
        public string PENALTY_PERCENT_VALUE
        {
            set { this.m_PENALTY_PERCENT_VALUE = value; }
            get { return this.m_PENALTY_PERCENT_VALUE; }
        }

        [DisplayName("PENALTY_DAY_COUNT_LIMIT")]
        [Description("Numarul de zile dupa care penalitatile nu mai cresc (ex: 1000)")]
        public string PENALTY_DAY_COUNT_LIMIT
        {
            set { this.m_PENALTY_DAY_COUNT_LIMIT = value; }
            get { return this.m_PENALTY_DAY_COUNT_LIMIT; }
        }

        [DisplayName("PRINT_PENALTY_TITLE")]
        [Description("Titlul mare de la lista cu penalitati - pentru printare.")]
        public string PRINT_PENALTY_TITLE
        {
            set { this.m_PRINT_PENALTY_TITLE = value; }
            get { return this.m_PRINT_PENALTY_TITLE; }
        }

        [DisplayName("PRINT_DOMAIN")]
        [Description("Text ce defineste titlul asociatiei - Numele asociatiei ce apare la printare.")]
        public string PRINT_DOMAIN
        {
            set { this.m_PRINT_DOMAIN = value; }
            get { return this.m_PRINT_DOMAIN; }
        }





        [DisplayName("PRINT_SUMMON_TITLE")]
        [Description("Titlu somatie")]
        public string PRINT_SUMMON_TITLE
        {
            set { this.m_PRINT_SUMMON_TITLE = value; }
            get { return this.m_PRINT_SUMMON_TITLE; }
        }
        [DisplayName("PRINT_SUMMON_HEADER")]
        [Description("Partea de sus a somatiei.")]
        public string PRINT_SUMMON_HEADER
        {
            set { this.m_PRINT_SUMMON_HEADER = value; }
            get { return this.m_PRINT_SUMMON_HEADER; }
        }
        [DisplayName("PRINT_SUMMON_BODY")]
        [Description("Textul principal al somatiei. Primul parametru (0) reprezinta valoarea principala a restantei - e folosit parametrul PRINT_SUMMON_BODY_TOTALS_DETAILS. Al doilea parametru (1) este procentajul de penalizare setat la PENALTY_PERCENT_VALUE")]
        public string PRINT_SUMMON_BODY
        {
            set { this.m_PRINT_SUMMON_BODY = value; }
            get { return this.m_PRINT_SUMMON_BODY; }
        }

        [DisplayName("PRINT_SUMMON_TO")]
        [Description("Catre cine? D-nei? D-ului?")]
        public string PRINT_SUMMON_TO
        {
            set { this.m_PRINT_SUMMON_TO = value; }
            get { return this.m_PRINT_SUMMON_TO; }
        }
        [DisplayName("PRINT_SUMMON_ADMIN")]
        [Description("Semnatura de jos - Administrator/Presedinte/etc + ____.")]
        public string PRINT_SUMMON_ADMIN
        {
            set { this.m_PRINT_SUMMON_ADMIN = value; }
            get { return this.m_PRINT_SUMMON_ADMIN; }
        }
        [DisplayName("PRINT_SUMMON_BODY_TOTALS_DETAILS")]
        [Description("Text inserat in corpul somatie ca prim parametru. Parametrii 0, 1 si 2 sunt valorile intretinerii, penalitatilor, si totalului general.")]
        public string PRINT_SUMMON_BODY_TOTALS_DETAILS
        {
            set { this.m_PRINT_SUMMON_BODY_TOTALS_DETAILS = value; }
            get { return this.m_PRINT_SUMMON_BODY_TOTALS_DETAILS; }
        }
    }
}
